home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7763 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  2.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news text default
99% file C source text default
98% file C source, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 72 6f 2e 63 6f |Path: ne|ws.ro.co|
|00000010| 6d 21 75 73 65 6e 65 74 | 0a 46 72 6f 6d 3a 20 70 |m!usenet|.From: p|
|00000020| 72 61 63 40 72 6f 2e 63 | 6f 6d 20 28 52 6f 6e 61 |rac@ro.c|om (Rona|
|00000030| 6c 64 20 53 63 68 6d 69 | 74 7a 29 0a 4e 65 77 73 |ld Schmi|tz).News|
|00000040| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 73 79 73 |groups: |comp.sys|
|00000050| 2e 68 70 2e 68 70 75 78 | 2c 63 6f 6d 70 2e 6c 61 |.hp.hpux|,comp.la|
|00000060| 6e 67 2e 63 2b 2b 2c 64 | 65 2e 63 6f 6d 70 2e 6c |ng.c++,d|e.comp.l|
|00000070| 61 6e 67 2e 63 2b 2b 0a | 53 75 62 6a 65 63 74 3a |ang.c++.|Subject:|
|00000080| 20 52 65 3a 20 48 50 2d | 55 58 20 31 30 2e 30 31 | Re: HP-|UX 10.01|
|00000090| 20 43 2b 2b 20 3a 20 42 | 75 67 20 69 6e 20 66 73 | C++ : B|ug in fs|
|000000a0| 74 72 65 61 6d 20 4c 69 | 62 72 61 72 79 20 3f 0a |tream Li|brary ?.|
|000000b0| 44 61 74 65 3a 20 31 35 | 20 46 65 62 20 31 39 39 |Date: 15| Feb 199|
|000000c0| 36 20 30 36 3a 30 35 3a | 31 31 20 47 4d 54 0a 4f |6 06:05:|11 GMT.O|
|000000d0| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 52 45 4e |rganizat|ion: REN|
|000000e0| 41 49 53 53 41 4e 43 45 | 20 49 4e 54 45 52 4e 45 |AISSANCE| INTERNE|
|000000f0| 54 20 53 45 52 56 49 43 | 45 53 0a 4d 65 73 73 61 |T SERVIC|ES.Messa|
|00000100| 67 65 2d 49 44 3a 20 3c | 34 66 75 69 65 6e 24 37 |ge-ID: <|4fuien$7|
|00000110| 64 73 40 6e 65 77 73 2e | 72 6f 2e 63 6f 6d 3e 0a |ds@news.|ro.com>.|
|00000120| 52 65 66 65 72 65 6e 63 | 65 73 3a 20 3c 34 65 69 |Referenc|es: <4ei|
|00000130| 34 68 64 24 36 6f 76 40 | 6e 65 77 73 2e 41 75 73 |4hd$6ov@|news.Aus|
|00000140| 74 72 69 61 2e 45 55 2e | 6e 65 74 3e 0a 52 65 70 |tria.EU.|net>.Rep|
|00000150| 6c 79 2d 54 6f 3a 20 70 | 72 61 63 40 72 6f 2e 63 |ly-To: p|rac@ro.c|
|00000160| 6f 6d 0a 4e 4e 54 50 2d | 50 6f 73 74 69 6e 67 2d |om.NNTP-|Posting-|
|00000170| 48 6f 73 74 3a 20 74 73 | 32 70 31 35 2e 72 6f 2e |Host: ts|2p15.ro.|
|00000180| 63 6f 6d 0a 4d 69 6d 65 | 2d 56 65 72 73 69 6f 6e |com.Mime|-Version|
|00000190| 3a 20 31 2e 30 0a 43 6f | 6e 74 65 6e 74 2d 54 79 |: 1.0.Co|ntent-Ty|
|000001a0| 70 65 3a 20 54 65 78 74 | 2f 50 6c 61 69 6e 3b 20 |pe: Text|/Plain; |
|000001b0| 63 68 61 72 73 65 74 3d | 49 53 4f 2d 38 38 35 39 |charset=|ISO-8859|
|000001c0| 2d 31 0a 58 2d 4e 65 77 | 73 72 65 61 64 65 72 3a |-1.X-New|sreader:|
|000001d0| 20 57 69 6e 56 4e 20 30 | 2e 39 39 2e 35 0a 0a 49 | WinVN 0|.99.5..I|
|000001e0| 6e 20 61 72 74 69 63 6c | 65 20 3c 34 65 69 34 68 |n articl|e <4ei4h|
|000001f0| 64 24 36 6f 76 40 6e 65 | 77 73 2e 41 75 73 74 72 |d$6ov@ne|ws.Austr|
|00000200| 69 61 2e 45 55 2e 6e 65 | 74 3e 2c 20 70 61 75 6d |ia.EU.ne|t>, paum|
|00000210| 61 6e 6e 40 61 70 61 72 | 73 31 2e 61 70 61 2e 63 |ann@apar|s1.apa.c|
|00000220| 6f 2e 61 74 20 73 61 79 | 73 2e 2e 2e 0a 3e 0a 3e |o.at say|s....>.>|
|00000230| 48 69 20 21 0a 3e 0a 3e | 48 61 76 65 20 73 6f 6d |Hi !.>.>|Have som|
|00000240| 65 6f 6e 65 20 72 65 63 | 6f 67 6e 69 7a 65 64 20 |eone rec|ognized |
|00000250| 61 20 70 72 6f 62 6c 65 | 6d 0a 3e 77 69 74 68 20 |a proble|m.>with |
|00000260| 66 69 6c 65 73 20 69 6e | 20 69 6e 70 75 74 20 61 |files in| input a|
|00000270| 6e 64 20 6f 75 74 70 75 | 74 20 6d 6f 64 65 0a 3e |nd outpu|t mode.>|
|00000280| 77 68 65 6e 20 72 65 61 | 64 69 6e 67 20 74 6f 20 |when rea|ding to |
|00000290| 74 68 65 20 65 6e 64 20 | 6f 66 20 74 68 65 20 66 |the end |of the f|
|000002a0| 69 6c 65 0a 3e 61 6e 64 | 20 74 68 65 6e 20 77 61 |ile.>and| then wa|
|000002b0| 6e 74 20 74 6f 20 77 72 | 69 74 65 20 73 6f 6d 65 |nt to wr|ite some|
|000002c0| 74 68 69 6e 67 20 74 6f | 0a 3e 74 68 65 20 66 69 |thing to|.>the fi|
|000002d0| 6c 65 20 3f 0a 3e 0a 3e | 54 72 79 20 74 68 65 20 |le ?.>.>|Try the |
|000002e0| 66 6f 6c 6c 6f 77 69 6e | 67 20 28 63 6f 6d 6d 61 |followin|g (comma|
|000002f0| 6e 64 20 6c 69 6e 65 29 | 20 77 69 74 68 20 74 68 |nd line)| with th|
|00000300| 65 0a 3e 45 78 61 6d 70 | 6c 65 20 28 73 65 65 20 |e.>Examp|le (see |
|00000310| 65 6e 64 20 6f 66 20 70 | 6f 73 74 69 6e 67 29 20 |end of p|osting) |
|00000320| 63 6f 6d 70 69 6c 65 64 | 20 74 6f 20 61 2e 6f 75 |compiled| to a.ou|
|00000330| 74 20 3a 0a 3e 0a 3e 24 | 20 65 63 68 6f 20 74 65 |t :.>.>$| echo te|
|00000340| 73 74 20 3e 64 69 6e 67 | 73 64 61 0a 3e 24 20 61 |st >ding|sda.>$ a|
|00000350| 2e 6f 75 74 0a 3e 24 20 | 77 63 20 2d 6c 20 64 69 |.out.>$ |wc -l di|
|00000360| 6e 67 73 64 61 0a 3e 24 | 20 63 61 74 20 64 69 6e |ngsda.>$| cat din|
|00000370| 67 73 64 61 0a 3e 0a 3e | 6f 6b 2e 20 64 69 6e 67 |gsda.>.>|ok. ding|
|00000380| 73 64 61 20 67 6f 74 20 | 34 30 20 6c 69 6e 65 73 |sda got |40 lines|
|00000390| 20 77 69 74 68 20 74 68 | 65 20 73 61 6d 65 20 73 | with th|e same s|
|000003a0| 74 72 69 6e 67 0a 3e 69 | 6e 20 69 74 20 28 22 31 |tring.>i|n it ("1|
|000003b0| 32 33 34 35 36 37 38 39 | 30 5f 31 32 5c 6e 22 29 |23456789|0_12\n")|
|000003c0| 2e 0a 3e 42 75 74 20 74 | 68 65 6e 20 74 72 79 20 |..>But t|hen try |
|000003d0| 74 68 69 73 2e 0a 3e 0a | 3e 24 20 72 6d 20 64 69 |this..>.|>$ rm di|
|000003e0| 6e 67 73 64 61 0a 3e 24 | 20 61 2e 6f 75 74 0a 3e |ngsda.>$| a.out.>|
|000003f0| 24 20 77 63 20 2d 6c 20 | 64 69 6e 67 73 64 61 0a |$ wc -l |dingsda.|
|00000400| 3e 24 20 63 61 74 20 64 | 69 6e 67 73 64 61 0a 3e |>$ cat d|ingsda.>|
|00000410| 0a 3e 79 6f 75 20 77 69 | 6c 6c 20 67 65 74 20 5f |.>you wi|ll get _|
|00000420| 6f 6e 65 20 6c 69 6e 65 | 5f 20 77 69 74 68 20 74 |one line|_ with t|
|00000430| 68 65 20 61 62 6f 76 65 | 20 73 74 72 69 6e 67 0a |he above| string.|
|00000440| 3e 69 6e 20 69 74 20 21 | 3f 21 3f 0a 3e 0a 3e 57 |>in it !|?!?.>.>W|
|00000450| 68 65 6e 20 73 68 6f 72 | 74 65 6e 69 6e 67 20 74 |hen shor|tening t|
|00000460| 68 65 20 61 62 6f 76 65 | 20 73 74 72 69 6e 67 20 |he above| string |
|00000470| 77 69 74 68 20 6f 6e 65 | 0a 3e 63 68 61 72 61 63 |with one|.>charac|
|00000480| 74 65 72 20 74 6f 20 22 | 31 32 33 34 35 36 37 38 |ter to "|12345678|
|00000490| 39 30 5f 31 5c 6e 22 20 | 62 6f 74 68 20 63 6f 6d |90_1\n" |both com|
|000004a0| 6d 61 6e 64 0a 3e 6c 69 | 6e 65 20 65 78 61 6d 70 |mand.>li|ne examp|
|000004b0| 6c 65 73 20 61 62 6f 76 | 65 20 77 69 6c 6c 20 77 |les abov|e will w|
|000004c0| 6f 72 6b 20 6c 69 6b 65 | 20 65 78 70 65 63 74 65 |ork like| expecte|
|000004d0| 64 20 0a 3e 28 34 30 20 | 6c 69 6e 65 73 20 61 72 |d .>(40 |lines ar|
|000004e0| 65 20 67 65 6e 65 72 61 | 74 65 64 29 20 21 0a 3e |e genera|ted) !.>|
|000004f0| 0a 3e 0a 3e 53 6f 6d 65 | 6f 6e 65 20 65 76 65 72 |.>.>Some|one ever|
|00000500| 20 68 69 74 20 74 68 69 | 73 20 62 75 67 20 3f 0a | hit thi|s bug ?.|
|00000510| 3e 4d 61 79 62 65 20 74 | 68 65 72 65 20 69 73 20 |>Maybe t|here is |
|00000520| 61 20 70 61 74 63 68 20 | 3f 0a 3e 50 6c 65 61 73 |a patch |?.>Pleas|
|00000530| 65 20 68 65 6c 70 20 21 | 0a 3e 0a 3e 54 68 61 6e |e help !|.>.>Than|
|00000540| 78 2c 20 6d 61 72 69 6f | 0a 3e 0a 3e 0a 3e 0a 3e |x, mario|.>.>.>.>|
|00000550| 61 2e 6f 75 74 20 73 6f | 75 72 63 65 20 3a 0a 3e |a.out so|urce :.>|
|00000560| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0a 3e |--------|------.>|
|00000570| 0a 3e 23 69 6e 63 6c 75 | 64 65 20 3c 69 6f 73 74 |.>#inclu|de <iost|
|00000580| 72 65 61 6d 2e 68 3e 0a | 3e 0a 3e 6d 61 69 6e 28 |ream.h>.|>.>main(|
|00000590| 29 0a 3e 0a 3e 7b 20 66 | 73 74 72 65 61 6d 20 6d |).>.>{ f|stream m|
|000005a0| 79 6c 6f 67 3b 0a 3e 20 | 20 63 68 61 72 20 69 5b |ylog;.> | char i[|
|000005b0| 31 30 32 34 5d 3b 0a 3e | 0a 3e 20 20 6d 79 6c 6f |1024];.>|.> mylo|
|000005c0| 67 2e 6f 70 65 6e 28 22 | 64 69 6e 67 73 64 61 22 |g.open("|dingsda"|
|000005d0| 2c 20 69 6f 73 3a 3a 69 | 6e 20 7c 20 69 6f 73 3a |, ios::i|n | ios:|
|000005e0| 3a 6f 75 74 29 3b 0a 3e | 0a 3e 20 20 2f 2f 20 52 |:out);.>|.> // R|
|000005f0| 65 61 64 69 6e 67 0a 3e | 20 20 6d 79 6c 6f 67 20 |eading.>| mylog |
|00000600| 3e 3e 20 69 3b 0a 3e 0a | 3e 20 20 2f 2f 20 57 72 |>> i;.>.|> // Wr|
|00000610| 69 74 69 6e 67 0a 3e 20 | 20 2f 2f 20 21 21 21 21 |iting.> | // !!!!|
|00000620| 21 20 54 61 6b 65 20 63 | 61 72 65 20 61 62 6f 75 |! Take c|are abou|
|00000630| 74 20 74 68 65 20 6c 65 | 6e 67 74 68 20 6f 66 20 |t the le|ngth of |
|00000640| 74 68 65 20 73 74 72 69 | 6e 67 20 21 21 21 21 21 |the stri|ng !!!!!|
|00000650| 21 0a 3e 20 20 66 6f 72 | 20 28 69 6e 74 20 6a 3d |!.> for| (int j=|
|00000660| 30 3b 20 6a 3c 34 30 3b | 20 6a 2b 2b 29 0a 3e 20 |0; j<40;| j++).> |
|00000670| 20 20 20 6d 79 6c 6f 67 | 20 3c 3c 20 22 31 32 33 | mylog| << "123|
|00000680| 34 35 36 37 38 39 30 5f | 31 32 5c 6e 3b 0a 3e 0a |4567890_|12\n;.>.|
|00000690| 3e 20 20 72 65 74 75 72 | 6e 20 30 3b 0a 3e 7d 0a |> retur|n 0;.>}.|
|000006a0| 3e 0a 3e 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |>.>-----|--------|
|000006b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 3e 46 75 65 72 20 |--------|-.>Fuer |
|000006d0| 64 65 2e 63 6f 6d 70 2e | 6c 61 6e 67 2e 63 2b 2b |de.comp.|lang.c++|
|000006e0| 20 5a 75 73 63 68 61 75 | 65 72 20 3a 0a 3e 54 75 | Zuschau|er :.>Tu|
|000006f0| 74 20 6d 69 72 20 6c 65 | 69 64 2c 20 64 61 73 73 |t mir le|id, dass|
|00000700| 20 69 63 68 20 65 6e 67 | 6c 69 73 63 68 20 67 65 | ich eng|lisch ge|
|00000710| 73 63 68 72 69 65 62 65 | 6e 0a 3e 68 61 62 65 2c |schriebe|n.>habe,|
|00000720| 20 61 62 65 72 20 69 63 | 68 20 77 6f 6c 6c 74 65 | aber ic|h wollte|
|00000730| 20 65 73 20 61 75 63 68 | 20 69 6e 20 65 6e 67 6c | es auch| in engl|
|00000740| 69 73 63 68 65 0a 3e 6e | 65 77 73 67 72 6f 75 70 |ische.>n|ewsgroup|
|00000750| 73 20 70 6f 73 74 65 6e | 2e 20 44 61 6e 6b 65 20 |s posten|. Danke |
|00000760| 21 0a 0a 49 27 76 65 20 | 65 78 70 65 72 69 65 6e |!..I've |experien|
|00000770| 63 65 64 20 61 20 73 69 | 6d 69 6c 61 72 20 74 79 |ced a si|milar ty|
|00000780| 70 65 20 70 72 6f 62 6c | 65 6d 20 73 69 6d 70 6c |pe probl|em simpl|
|00000790| 79 20 6f 70 65 6e 69 6e | 67 20 61 20 66 69 6c 65 |y openin|g a file|
|000007a0| 20 61 6e 64 20 77 72 69 | 74 69 6e 67 20 0a 73 6f | and wri|ting .so|
|000007b0| 6d 65 74 68 69 6e 67 20 | 74 6f 20 69 74 2d 2d 2d |mething |to it---|
|000007c0| 69 6e 20 66 61 63 74 2c | 20 69 74 20 73 68 6f 77 |in fact,| it show|
|000007d0| 73 20 75 70 20 61 73 20 | 61 20 6c 69 6e 6b 20 65 |s up as |a link e|
|000007e0| 72 72 6f 72 2e 20 20 46 | 6f 72 20 65 78 61 6d 70 |rror. F|or examp|
|000007f0| 6c 65 2c 0a 0a 23 69 6e | 63 6c 75 64 65 20 3c 69 |le,..#in|clude <i|
|00000800| 6f 73 74 72 65 61 6d 2e | 68 3e 0a 23 69 6e 63 6c |ostream.|h>.#incl|
|00000810| 75 64 65 20 3c 66 73 74 | 72 65 61 6d 2e 68 3e 0a |ude <fst|ream.h>.|
|00000820| 0a 6d 61 69 6e 28 29 0a | 7b 0a 20 20 6f 66 73 74 |.main().|{. ofst|
|00000830| 72 65 61 6d 28 20 22 74 | 65 73 74 2e 6f 75 74 22 |ream( "t|est.out"|
|00000840| 29 3b 0a 20 20 63 6f 75 | 74 20 3c 3c 20 22 48 65 |);. cou|t << "He|
|00000850| 6c 6c 6f 20 57 6f 72 6c | 64 5c 6e 22 3b 0a 0a 20 |llo Worl|d\n";.. |
|00000860| 20 72 65 74 75 72 6e 20 | 30 3b 0a 7d 0a 0a 54 68 | return |0;.}..Th|
|00000870| 69 73 20 63 61 75 73 65 | 73 20 61 20 6c 69 6e 6b |is cause|s a link|
|00000880| 20 65 72 72 6f 72 20 77 | 68 69 63 68 20 69 6d 70 | error w|hich imp|
|00000890| 6c 69 65 73 20 74 68 61 | 74 20 74 68 65 72 65 20 |lies tha|t there |
|000008a0| 61 72 65 20 6e 6f 20 6f | 76 65 72 6c 6f 61 64 65 |are no o|verloade|
|000008b0| 64 20 6f 70 65 72 61 74 | 6f 72 73 20 0a 22 3c 3c |d operat|ors ."<<|
|000008c0| 22 20 64 65 66 69 6e 65 | 64 20 66 6f 72 20 6f 66 |" define|d for of|
|000008d0| 73 74 72 65 61 6d 20 66 | 6f 72 20 74 79 70 65 20 |stream f|or type |
|000008e0| 63 6f 6e 73 74 20 63 68 | 61 72 2a 2e 20 20 49 27 |const ch|ar*. I'|
|000008f0| 6d 20 75 73 69 6e 67 20 | 74 68 65 20 47 4e 55 20 |m using |the GNU |
|00000900| 43 2b 2b 20 0a 63 6f 6d | 70 69 6c 65 72 20 6f 6e |C++ .com|piler on|
|00000910| 20 61 20 48 50 2d 55 58 | 20 31 30 2e 20 73 79 73 | a HP-UX| 10. sys|
|00000920| 74 65 6d 2e 20 42 75 74 | 20 69 66 20 49 20 75 73 |tem. But| if I us|
|00000930| 65 20 74 68 65 20 73 74 | 61 6e 64 61 72 64 20 43 |e the st|andard C|
|00000940| 20 61 70 70 72 6f 61 63 | 68 20 75 73 69 6e 67 20 | approac|h using |
|00000950| 0a 22 66 6f 70 65 6e 28 | 2e 2e 2e 22 2c 20 69 74 |."fopen(|...", it|
|00000960| 20 77 6f 72 6b 73 20 66 | 69 6e 65 2e 20 49 27 64 | works f|ine. I'd|
|00000970| 20 61 70 70 72 65 63 69 | 61 74 65 20 61 6e 79 20 | appreci|ate any |
|00000980| 75 73 65 66 75 6c 20 69 | 6e 66 6f 72 6d 61 74 69 |useful i|nformati|
|00000990| 6f 6e 20 69 6e 20 0a 73 | 74 72 61 69 67 68 74 65 |on in .s|traighte|
|000009a0| 6e 69 6e 67 20 74 68 69 | 73 20 6f 75 74 2e 0a 0a |ning thi|s out...|
|000009b0| 4a 6f 68 6e 20 42 2e 0a | 0a |John B..|. |
+--------+-------------------------+-------------------------+--------+--------+